package cn.mapper;

import java.util.List;

import cn.pojo.Role;

public interface RoleMapper {

	Role getRoleById(Integer userRole);

	// 获得所有的role对象
	List<Role> getAllRoles();

	int addRole(Role role);

	int totalCount(String roleName);

	List<Role> getRoleLike(String roleName, Integer rowNum, int pagecount);

	Role getRoleByRoleCode(String roleCode);

	Role getRoleByRoleName(String roleName);

	int roleRemove(String id);

	Integer[] deleteAll(String[] id);
}
